#header{
    height: 45px;
    width: 100%;
    background-color: #252525;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    // 左侧logo
    h1{
        height: 45px;
        overflow: hidden;
        position: absolute;
        top: 0;
        left: 0;
        i{
            display: block;
            width: 18px;
            height: 18px;
            background: url("/images/headerRepeat/logo.png") no-repeat;
            margin-top: 12px;
            margin-left: 20px;
        }
    }

    // 中间导航栏
    .headerNav{
        width: 1220px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #252525;
        li{
            padding: 0 20px;
            font-size: 11px;
            line-height: 11px;
            color: #b5b5b5;
            cursor: pointer;
            &.active{
                color: #dfdfdf;
            }
        }
    }

    // 右侧用户购物车
    .right{
        height: 45px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        top: 0;
        right: 0;
        .userLogo{
            width: 20px;
            height: 45px;
            margin-right: 25px;
            display: flex;
            align-items: center;
            .user{
                display: block;
                width: 20px;
                height: 20px;
                background: url("/images/headerRepeat/avatar-and-cart.c2634628.png") no-repeat;
                background-size: 180%;
                background-position: -18px 1px;
                cursor: pointer;
            }
        }
        .cartLogo{
            width: 20px;
            height: 45px;
            margin-right: 25px;
            display: flex;
            align-items: center;
            position: relative;
            .cart{
                display: block;
                width: 20px;
                height: 20px;
                background: url("/images/headerRepeat/avatar-and-cart.c2634628.png") no-repeat;
                background-size: 180%;
                background-position: -18px -17px;
                cursor: pointer;
            }
            .point{
                width: 6px;
                height: 6px;
                background-color: #df1317;
                border-radius: 50%;
                position: absolute;
                top: 13px;
                right: 2px;
                display: none;
                &.active{
                    display: block;
                }
            }
        }
        .userBox{
            position: absolute;
            width: 170px;
            height: 378px;
            box-sizing: border-box;
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 8px;
            top: 46px;
            right: 20px;
            z-index: 12;
            display: none;
            &.active{
                display: block;
            }
            .userContent{
                height: 100%;
                display: flex;
                flex-direction: column;
                .header{
                    height: 107px;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    i{
                        display: block;
                        width: 46px;
                        height: 46px;
                        overflow: hidden;
                        border-radius: 50%;
                        background: url("/images/headerRepeat/avator.9177a6a6.jpg");
                    }
                    p{
                        font-size: 12px;
                        height: 12px;
                        line-height: 12px;
                        color: #626262;
                        margin-top: 11px;
                        text-align: center;
                    }
                }
                .listBox{
                    // height: 20px;
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    align-items: stretch;
                    .list{
                        flex: 1;
                        box-sizing: border-box;
                        border-top: 1px solid #f2f2f2;
                        display: flex;
                        justify-content: start;
                        align-items: center;
                        cursor: pointer;
                        position: relative;
                        i{
                            display: block;
                            width: 16px;
                            height: 16px;
                            margin-left: 25px;
                            margin-right: 15px;
                            background: url("/images/headerRepeat/links.32d87deb.png") no-repeat;
                        }
                        &:nth-of-type(1) i{
                            background-position: -2px -44px;
                        }
                        &:nth-of-type(2) i{
                            background-position: -23px -44px;
                        }
                        &:nth-of-type(3) i{
                            width: 18px;
                            height: 13px;
                            margin-right: 13px;
                            background-position: -21px -85px;
                        }
                        &:nth-of-type(4) i{
                            background-position: -2px -64px;
                        }
                        &:nth-of-type(5) i{
                            background-position: -23px -64px;
                        }
                        &:nth-of-type(6) i{
                            background-position: -2px -84px;
                        }
                        p{
                            font-size: 12px;
                            height: 12px;
                            line-height: 12px;
                            color: #4e4e4e;
                        }
                        .cover{
                            display: block;
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 100%;
                            height: 100%;
                            &:hover{
                                background-color: rgba(200, 200, 200, 0.4);
                            }
                        }
                    }
                }
            }
        }
        .cartBox{
            display: none;
            width: 362px;
            position: absolute;
            top: 45px;
            right: 20px;
            z-index: 12;
            box-sizing: border-box;
            background-color: #ffffff;
            border: 1px solid #e6e6e6;
            border-radius: 8px;
            padding: 0 20px;
            &.active{
                display: block;
            }
            .cart{
                .cartContent{
                    .cartList{
                        height: 120px;
                        box-sizing: border-box;
                        display: flex;
                        justify-content: start;
                        align-items: center;
                        position: relative;
                        &:hover{
                            .delBox{
                                display: block;
                            }
                        }
                        .imgBox{
                            width: 80px;
                            height: 80px;
                            img{
                                display: block;
                                width: 100%;
                                height: 100%;
                            }
                        }
                        .msgBox{
                            margin-left: 20px;
                            width: 240px;
                            .titleBox{
                                font-size: 14px;
                                height: 14px;
                                line-height: 14px;
                                color: #000000;
                                font-weight: bold;
                                white-space: nowrap;
                                overflow: hidden;
                                text-overflow: ellipsis;
                            }
                            .typeBox{
                                font-size: 13px;
                                height: 13px;
                                line-height: 13px;
                                color: #878787;
                                margin-top: 15px;
                            }
                            .priceBox{
                                font-size: 12px;
                                margin-top: 22px;
                                display: flex;
                                justify-content: start;
                                align-items: center;
                                em{
                                    display: block;
                                    font-size: 10px;
                                    color: #c73734;
                                }
                                i{
                                    font-size: 12px;
                                    width: 40px;
                                    text-align: center;
                                    font-weight: bold;
                                    color: #c73734;
                                }
                                span{
                                    display: block;
                                    font-size: 8px;
                                    color: #bebebe;
                                }
                                b{
                                    font-size: 10px;
                                    display: block;
                                    margin-left: 4px;
                                    color: #bebebe;
                                }
                            }
                        }
                        .delBox{
                            width: 20px;
                            height: 20px;
                            position: absolute;
                            top: 50px;
                            right: 0px;
                            display: none;
                            .delBtn{
                                display: block;
                                width: 20px;
                                height: 20px;
                                background: url("/images/headerRepeat/links.32d87deb.png") no-repeat;
                                background-position: -50px -60px;
                                cursor: pointer;
                                &:hover{
                                    background-position: -75px -60px;
                                }
                            }
                        }
                    }
                }
                .cartFooter{
                    height: 82px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    box-sizing: border-box;
                    border-top: 1px solid #ececec;
                    .cartFooterLeft{
                        div{
                            font-size: 12px;
                            height: 12px;
                            line-height: 12px;
                            color: #b4b4b4;
                            display: flex;
                            justify-content: start;
                            i{
                                display: block;
                                width: 20px;
                                font-weight: bold;
                                text-align: center;
                            }
                        }
                        p{
                            font-size: 16px;
                            line-height: 16px;
                            height: 16px;
                            margin-top: 10px;
                            display: flex;
                            justify-self: start;
                            span{
                                color: #5c5c5c;
                                margin-right: 7px;
                            }
                            em{
                                color: #c73734;
                                font-size: 10px;
                                i{
                                    font-size: 16px;
                                    font-weight: bold;
                                    margin-left: 8px;
                                }
                            }
                        }
                    }
                    .cartFooterRight{
                        width: 120px;
                        height: 40px;
                        a{
                            display: block;
                            width: 120px;
                            height: 40px;
                            box-sizing: border-box;
                            background-color: #4b72ec;
                            border: 1px solid #2f46d3;
                            text-align: center;
                            font-size: 14px;
                            line-height: 40px;
                            color: #fff;
                            border-radius: 6px;
                            &:hover{
                                background-color: #5376f0;
                            }
                        }
                    }
                }
            }
            .emptyBox{
                height: 316px;
                display: flex;
                display: none;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                i{
                    display: block;
                    width: 76px;
                    height: 62px;
                    background: url("/images/headerRepeat/cart-empty.png") no-repeat;
                }
                div{
                    font-size: 17px;
                    line-height: 17px;
                    height: 17px;
                    margin-top: 27px;
                    text-align: center;
                    color: #262626;
                }
                p{
                    font-size: 12px;
                    line-height: 12px;
                    height: 12px;
                    color: #aeaeae;
                    text-align: center;
                    margin-top: 7px;
                }
            }

        }
    }
}
